package com.edu.bhu.admin.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.edu.bhu.common.annotation.Excel;
import com.edu.bhu.common.core.domain.BaseEntity;

import java.math.BigDecimal;

/**
 * 购物车对象 cos_cart
 * 
 * @author wangjinao
 * @date 2022-03-17
 */
public class CosCart extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 购物车唯一标识 */
    private Long cartId;

    /** 关联用户ID */
    @Excel(name = "关联用户ID")
    private Long userId;

    /** 关联商品ID */
    @Excel(name = "关联商品ID")
    private Long cosId;
    private CosCosmetics cosmetics;

    /** 数量 */
    @Excel(name = "数量")
    private Long number;
    private BigDecimal total;

    /** 状态 */
    @Excel(name = "状态")
    private Long status;

    public CosCosmetics getCosmetics() {
        return cosmetics;
    }

    public BigDecimal getTotal() {
        return total;
    }

    public void setTotal(BigDecimal total) {
        this.total = total;
    }

    public void setCosmetics(CosCosmetics cosmetics) {
        this.cosmetics = cosmetics;
    }

    public void setCartId(Long cartId)
    {
        this.cartId = cartId;
    }

    public Long getStatus() {
        return status;
    }

    public void setStatus(Long status) {
        this.status = status;
    }

    public Long getCartId()
    {
        return cartId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setCosId(Long cosId) 
    {
        this.cosId = cosId;
    }

    public Long getCosId() 
    {
        return cosId;
    }
    public void setNumber(Long number) 
    {
        this.number = number;
    }

    public Long getNumber() 
    {
        return number;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("cartId", getCartId())
            .append("userId", getUserId())
            .append("cosId", getCosId())
            .append("number", getNumber())
            .toString();
    }
}
